package fr.pascal.client.place;

import com.google.gwt.place.shared.Place;
import com.google.gwt.place.shared.PlaceTokenizer;
import com.google.gwt.place.shared.Prefix;

public class KangourouPlace extends Place {
	
	private String token;
	
	public KangourouPlace(String token) {
		this.token = token;
	}
	
	public String getToken() {
		return token;
	}
	
	@Prefix("kangourou")
	public static class Tokenizer implements PlaceTokenizer<KangourouPlace> {

		@Override
		public KangourouPlace getPlace(String token) {
			return new KangourouPlace(token);
		}

		@Override
		public String getToken(KangourouPlace place) {
			return place.getToken();
		}
	}
}
